package cn.wolfcode.trip.base.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 注册用户
 */
@Getter @Setter @ToString
public class User extends BaseDomain {
    public static final Integer GENDER_SECRECY = -1; //保密
    public static final Integer GENDER_MAN = 1; //男
    public static final Integer GENDER_WOMAN = 0; //女

    private String email; //邮箱

    private String nickName; //昵称

    private String password; //密码

    private String place; //住址

    private String headImgUrl; //头像路径

    private Integer gender = GENDER_SECRECY; //性别

    private String coverImgUrl; //背景路径

    private String sign; //个性签名

    public String getGenderName(){
        String genderName = "保密";
        if (gender == User.GENDER_MAN) {
            genderName = "男";
        }else if(gender == User.GENDER_WOMAN){
            genderName = "女";
        }
        return genderName;
    }
}